﻿using System;

namespace Mojo.Widgets
{
    /// <summary>
    /// &lt;div x-mojo-element="Button" id="buttonId" class="buttonClass" name="buttonName"&gt;&lt;/div&gt;
    /// </summary>
    public class Button
    {
        /// <summary>
        /// For an activity button, start the spinner
        /// </summary>
        public void Activate()
        {
        }

        /// <summary>
        /// For an activity button, stop the spinner
        /// </summary>
        public void Deactivate()
        {
        }
    }

    public class ButtonAttributes : WidgetsCreateAttributes
    {
        /// <summary>
        /// Optional. Button's label if none is supplied by the model
        /// </summary>
        public string Label;

        /// <summary>
        /// Optional.
        /// <para>Mojo.Widget.defaultButton - simple pushbutton</para>
        /// <para>Mojo.Widget.activityButton- pushbutton with spinner activated on tap of the button</para>
        /// </summary>
        public string Type;

        /// <summary>
        /// Optional. Model property name for disabled
        /// </summary>
        public string DisabledProperty;

        /// <summary>
        /// Optional. Model property name for label
        /// </summary>
        public string LabelProperty;
    }

    public class ButtonModel : WidgetsCreateModel
    {
        /// <summary>
        /// Optional. Model property that has the CSS class name of this button. Legal values are: "primary", "secondary", "affirmative", and "negative".
        /// </summary>
        public string ButtonClass;

        /// <summary>
        /// Optional. If true, button is inactive
        /// </summary>
        public bool Disabled;	 

        /// <summary>
        /// Optional. Button's label
        /// </summary>
        public string Label;
    }
}
